<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
 <html lang="en">
 <head>
 	<meta charset="UTF-8">
 	<title>newBack</title>
	 <meta name="viewport" content="width=device-width, initial-scale=1">
	 <script type="application/javascript" src="/Public/js/jquery.min.js"></script>
	 <script type="application/javascript" src="/Public/js/bootstrap.min.js"></script>
	 <link rel="stylesheet" type="text/css" href="/Public/css/bootstrap.min.css" />
 	<style type="text/css">
   ul#navbar{
   	margin-right: 25px;
   }
.mysearch{
	margin: 10px 0;

        }
#left{
	width: 250px;
	height: 500px;
}
#main{
	height: 60px;
	margin-right: 15px;
       }
   .form-group{
	   overflow: hidden;
   }
 	</style>
	 
    <script type="text/javascript"   src="/Public/ueditor/ueditor.config.js"></script>
    <script type="text/javascript"    src="/Public/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript"    src="/Public/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript"    src="/Public/uploadify/jquery.uploadify.min.js"></script>


    <script type="text/javascript">
        $(function() {
            $('#file').uploadify({
                'formData'     : {
                    '<?php echo session_name();?>' : '<?php echo session_id();?>',
                },
                'fileTypeDesc' : 'مەھسۇلات رەسىملىرى',//上传描述
                'fileTypeExts' : '*.jpg;*.png',
                'swf'      : '/Public/uploadify/uploadify.swf',
                'uploader' : '/Admin/Content/up',
                'buttonText':'封面',
                'fileSizeLimit' : '2000KB',
                'uploadLimit' : 10,//上传文件数
                'width':200,
                'height':40,
                'successTimeout':10,//等待服务器响应时间
                'removeTimeout' : 0.2,//成功显示时间
                'onUploadSuccess' : function(file, data, response) {
                    data=$.parseJSON(data);
                    //获得图片地址
                    var li="<li><img src='/"+data+"'/> <input type='hidden' name='cover[]' value='"+data+"'/> </li>";
                    $(".article_thumb").prepend(li);

                }
            });
        });
    </script>
    <!--<script type="text/javascript"  charset="utf-8"  src="/Public/js/bootstrap-datetimepicker.min.js"></script>-->
    <!--<script>
        $(function(){
            $('#create_at').datetimepicker({
                pickDate: true,
                pickTime: false,
                format: 'YYYY-MM-DD',
            });
        });
    </script>-->

	 
    <link type="text/css" href="__PUBLIC_/css/bootstrap-datetimepicker.min.css" />
    <link rel="stylesheet" href="/Public/uploadify/uploadify.css">

 </head>
 <body>

 	<!-- 导航 -->
  
 	<nav class="navbar navbar-default navbar-static-top" 
 	style="margin-bottom: 0;">
 		<!-- 导航条的头部 -->
 		<div class="navbar-header">
 			<a href="#" class="navbar-brand">网站后台管理</a>
 			<!-- 缩小的时候形成下拉的效果 -->
 			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
 		</div>
 		<ul class="nav navbar-nav navbar-right" id="navbar">
 		<li><a href="#"><span class="badge" style="background-color: #880015">23</span>-->
 		</a></li>
 			<li><a href="#"><span class="glyphicon glyphicon-off"></span>&nbsp注销</a></li>
 		</ul>
	</nav>
  
	
 		<!-- 左侧功能栏 -->
 	    <div class=" navbar-default navbar-collapse col-md-2" id="left">
 			<ul class="nav" >
              <li>
                <div class="input-group  mysearch">
              	<input type="text" class="form-control " />
              	<span class="input-group-btn">		
           <button class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
              	</span>
              </div>
              </li>
              <li><a href=""><span class="glyphicon glyphicon-th-list "></span>&nbsp内容管理</a></li>
              <li><a href=""><span class="glyphicon glyphicon-th-large"></span>&nbsp分类管理</a></li> 
              <li>
              	<a href="#sub1" data-toggle="collapse"><span class="glyphicon glyphicon-user "></span>&nbsp用户管理
              		<span class="glyphicon glyphicon-chevron-right pull-right"></span></a>
                  <ul id="sub1" class="nav collapse">
                     <li><a href="#">管理员管理</a></li>
                     <li><a href="#">会员管理</a></li>
                  </ul> 

              </li>
              <li><a href=""><span class="glyphicon glyphicon-list-alt "></span>&nbsp日志管理</a></li>

              <li><a href=""><span class="glyphicon glyphicon-remove "></span>&nbsp退出</a></li>
 			 </ul>

 		</div>

	

     <!--内容页面-->
	
    <form action="<?php echo U('add');?>"  method="post">
    <div class="row" id="main" style="margin-left: 250px; margin-top: 50px;">
        <div class="form-group">
            <label for="title" style="" class=" col-md-2 col-md-push-1">文章标题</label>
            <div class="col-md-9 ">
            <input class="form-control" name="title" placeholder="文章标题" id="title">
            </div>
        </div>
        <div class="form-group">
                <label for="file" class="col-sm-2 control-label col-md-push-1">封面</label>

            <div class="col-sm-10">
                <input id="file" type="file" multiple="true" name="cover">
                <span>类型: *.jpg,*.png 大小: 2000KB 数量: 10</span>
                <div class="article_thumb"></div>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-2 col-md-push-1">
                <label for="summary">摘要</label>
            </div>
            <div class="col-sm-9">
                <textarea class="form-control" id="summary"></textarea>
            </div>
        </div>


            <div class="form-group">
                <label class="col-sm-2 control-label col-md-push-1" for="editor">描述</label>
                <div class="col-sm-10">
                    <textarea name="content" id="editor"  style="width:800px;height:500px;"></textarea>
                    <script>
                        var ue = UE.getEditor('editor');
                    </script>
                </div>
            </div>

        <div class="form-group">
            <label for="create_at" class="col-md-2  control-label col-md-push-1">创建时间</label>
            <div class="col-md-9">
            <input class="form-control" name="create_at" placeholder="创建时间" id="create_at">
            </div>
        </div>
        <input type="submit" class="btn btn-success col-md-2 col-md-offset-2" >
    </div>

    </form>

 </body>
 </html>